﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Rison.Web.Common;

namespace Rison.Web.wysq
{
    public partial class ucVerifyCode : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["VNum"] != null)
                ViewState["verifyCode"] = Session["VNum"];

        }

        protected string UrlBase
        {
            get { return PageGlobalParams.PageUrlBase2; }
        }


        public bool ValidateVerificationCode()
        {
            if (ViewState["verifyCode"] != null)
            {
                if (txtCode.Text.Equals(ViewState["verifyCode"].ToString()))
                    return true;
            }
            return false;
        }

    }
}